﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopTaohuaDirectory")]
    public class TopTaohuaDirectory : BaseObject
    {
        //begin
        public TopTaohuaDirectory()
        {}
        public TopTaohuaDirectory(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Name;
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetPropertyValue("Name", ref _Name, value);
            }
        }
        private string _Rel;
        public string Rel
        {
            get
            {
                return _Rel;
            }
            set
            {
                SetPropertyValue("Rel", ref _Rel, value);
            }
        }
        private long _Page;
        public long Page
        {
            get
            {
                return _Page;
            }
            set
            {
                SetPropertyValue("Page", ref _Page, value);
            }
        }
        private TopTaohuaRootDirectory _TopTaohuaRootDirectory;
        [Association("TopTaohuaRootDirectoryKids", typeof(TopTaohuaRootDirectory))]
        public TopTaohuaRootDirectory TaohuaRootDirectory
        {
            get
            {
                return _TopTaohuaRootDirectory;
            }
            set
            {
                SetPropertyValue("TopTaohuaRootDirectory", ref _TopTaohuaRootDirectory, value);
            }
        }
        //end

    }
}
